﻿#ifndef GRAPHICSVALVEITEM_H
#define GRAPHICSVALVEITEM_H

#include <QGraphicsItem>

class GraphicsValveItem : public QGraphicsItem
{
public:
    GraphicsValveItem();
    QRectF boundingRect() const override;
    //void setScale(double scale = 1.0);
    QPointF keyPoint(int i);
private:
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;

    //double m_scale = 1.0;
    QPointF m_topPoints[2];
    QPointF m_bottomPoints[2];
    QPointF m_leftPoints[2];
    QPointF m_centrePoint;
    int m_radius = 25;
};

#endif // GRAPHICSVALVEITEM_H
